Conditions | 1 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import {renderToStaticMarkup} from "react-dom/server" |
||
6 | |||
7 | function expectRender( |
||
8 | ...elements: RElement[] |
||
9 | ) { |
||
10 | const input = toStatic(elements) |
||
11 | |||
12 | return { |
||
13 | toSame: (...expectations: RElement[]) => expect(input).toBe(toStatic(expectations)), |
||
14 | not: { |
||
15 | toSame: (...expectations: RElement[]) => expect(input).not.toBe(toStatic(expectations)), |
||
16 | } |
||
22 | } |